import request from '@/utils/request'

// 查询短信客户分组列表
export function listContactGroup(query) {
  return request({
    url: '/Sms/contactGroup/list',
    method: 'get',
    params: query
  })
}

// 查询短信客户分组树列表
export function treeSelectContactGroup(query) {
  return request({
    url: '/Sms/contactGroup/treeselect',
    method: 'get',
    params: query
  })
}

// 查询短信客户分组详细
export function getContactGroup(groupId) {
  return request({
    url: '/Sms/contactGroup/' + groupId,
    method: 'get'
  })
}

// 新增短信客户分组
export function addContactGroup(data) {
  return request({
    url: '/Sms/contactGroup',
    method: 'post',
    data: data
  })
}

// 修改短信客户分组
export function updateContactGroup(data) {
  return request({
    url: '/Sms/contactGroup',
    method: 'put',
    data: data
  })
}

// 删除短信客户分组
export function delContactGroup(groupIds) {
  return request({
    url: '/Sms/contactGroup/' + groupIds,
    method: 'delete'
  })
}

// 导出短信客户分组
export function exportContactGroup(query) {
  return request({
    url: '/Sms/contactGroup/export',
    method: 'post',
    params: query
  })
} 